import { defineStore } from "pinia";
import gethistory from "../../service/modules/history"
const usehistory=defineStore("history",{
    state:()=>({
        historydata:{}
    }),
    
    getters:{

    },

    actions:{
        async fetchhistory(){
            const res=await gethistory()
            this.historydata=res.data
            console.log(res.data);
        }
    }

})

export default usehistory